import Vue from 'vue'
import VueRouter from 'vue-router'
import Products from '../pages/products.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'products',
    component: Products
  },
  {
    path: '/cart',
    name: 'cart',
    component: () => import('../pages/cart.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
